projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f5d4db
)
checkbutton: Stop setting state flags on the style context for drawing
author
Rui Matos
<tiagomatos@gmail.com>
Thu, 15 Dec 2011 02:39:49 +0000
(
02:39
+0000)
committer
Rui Matos
<tiagomatos@gmail.com>
Mon, 19 Dec 2011 19:21:15 +0000
(19:21 +0000)
gtk/gtkcheckbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcheckbutton.c
b/gtk/gtkcheckbutton.c
index ac1971453553f231c6c9e483dda61a6fb0fbb896..7f9f19eb17f28a61264393c85f6319ad696bd829 100644
(file)
--- a/
gtk/gtkcheckbutton.c
+++ b/
gtk/gtkcheckbutton.c
@@
-179,7
+179,6
@@
gtk_check_button_paint (GtkWidget *widget,
{
GtkWidget *child = gtk_bin_get_child (GTK_BIN (widget));
GtkStyleContext *context;
- GtkStateFlags state;
GtkAllocation allocation;
gint border_width;
gint interior_focus;
@@
-196,9
+195,6
@@
gtk_check_button_paint (GtkWidget *widget,
gtk_widget_get_allocation (widget, &allocation);
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
-
- gtk_style_context_set_state (context, state);
if (interior_focus && child && gtk_widget_get_visible (child))
{